home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 812 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: "Dmitry M. Potapov" <dima@florin.msk.su>
  3. Newsgroups: comp.std.c++
  4. Subject: Q : dynamic_cast<>()
  5. Date: 21 Mar 1996 23:52:02 GMT
  6. Organization: DataX/FLORIN, Inc.
  7. Sender: news-service@kiae.su
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Distribution: world
  10. Message-ID: <199603211714.RAA26760@florin.msk.su>
  11. Reply-To: dima@florin.msk.su
  12. NNTP-Posting-Host: taumet.eng.sun.com
  13. X-Return-Path: kiae![194.87.233.66]!florin.msk.su!dima
  14. Apparently-To: comp-std-c++@uunet.uu.net
  15. Content-Length: 311
  16. X-Lines: 13
  17. Originator: clamage@taumet
  18.  
  19. When bad_casting to pointer type, 
  20. dynamic_cast<>() returns NULL.
  21.  
  22. Is there a standard on good_casting,
  23. I mean is it normal if dynamic_cast changes pointer,
  24. and could dynamic_cast<>() be implemented w/o changing
  25. the pointer if the cast was not bad ?
  26.  
  27. Thanks in advance,
  28.  
  29. Potapov Dmitry, dima@florin.msk.su
  30. -- 
  31.  
  32.  
  33.  
  34. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  35. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  36. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  37. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  38. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  39.